diff options
| author | Adam Soltys <[email protected]> | 2022-10-04 21:44:56 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-04 21:44:56 -0700 |
| commit | 6ab5dd648ca3e1d248c841deedca58b19890215c (patch) | |
| tree | fa9e01adc031d4d9df71d1f4b3b4dd7fbc76e4d6 /src/routes/[username] | |
| parent | da8ed54785f23e393ba981ba201b38da5e522df0 (diff) | |
| download | coinos-ui-6ab5dd648ca3e1d248c841deedca58b19890215c.tar.gz coinos-ui-6ab5dd648ca3e1d248c841deedca58b19890215c.zip | |
tip slider progress fill
Diffstat (limited to 'src/routes/[username]')
| -rw-r--r-- | src/routes/[username]/dashboard/+page.svelte | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/routes/[username]/dashboard/+page.svelte b/src/routes/[username]/dashboard/+page.svelte index 667c4749..8d77b699 100644 --- a/src/routes/[username]/dashboard/+page.svelte +++ b/src/routes/[username]/dashboard/+page.svelte @@ -53,10 +53,6 @@ <div class="px-3 md:px-0 flex justify-center items-center mt-10 lg:mt-0 mb-20"> <div> - <h3 class="text-secondary font-bold pb-1 mt-10 mb-6 w-full md:w-[500px] uppercase"> - {$t('user.dashboard.accountBalance')} - </h3> - <span class="text-3xl font-bold block mb-1" >{$selectedRate ? f(accountBalanceFiat, user.currency) @@ -73,12 +69,19 @@ >{$t('user.dashboard.receive')}</button > </a> - <a href="/send"> - <button - class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" - on:click={() => goto('/send')}>{$t('user.dashboard.withdraw')}</button - > - </a> + {#if user.account.balance > 0} + <a href="/send"> + <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" + >{$t('user.dashboard.withdraw')}</button + > + </a> + {:else} + <a href={`/${user.username}/settings`}> + <button class="rounded-full border py-2 px-5 font-bold hover:opacity-80 w-full mb-2" + >Setup Account</button + > + </a> + {/if} </div> </div> </div> |
